const Mock = require('mockjs')
const fs = require('fs')

const data = Mock.mock({
    'list|5': [
        {
            'id|+1': 1,
            'title': '@ctitle(10,15)'
        }
    ]
})

fs.writeFileSync('./data.json', JSON.stringify(data.list))